Issue: Building Names Do Not Get Pulled And Shown#4
Conversation
|
@TsipiDev From what I can tell the code you shared won't work due to different naming schemes between the osdb and the style. We would need to get the actual name used in the tileserver from the mbtiles metadata. |
If I understand correctly in order for labels to render correctly, we must map the text-field to the actual property key used in the vector tiles, which may differ from name that I used. I don’t have access to the MBTiles dataset used by the tile server, so this schema validation and property name extraction will need to be done on the backend side by inspecting the MBTiles metadata or tile layer fields. Once the correct attribute key is confirmed I can update the frontend text-field accordingly and submit a follow up fix if needed. Let me know if I understood something wrong or made a mistake! |
The file link is inside the style json you just edited. You can query the data of the base layer directly from maplibre. Alternatively, you can download the original file from here |
|
Actually, now that I think about it should we just draft a new style with new sprites from scratch? The one we have now -since its edited- has a lot of bloat and none of the sprites work so we need to do them at least. Might as well redo the style @TsipiDev |
Fix: Added the missing MapLibre symbol layer for building labels in map4.json after the building fill layer.
Result: Style loads correctly and is now ready to render building names when upstream vector tiles expose the
nameproperty.Note: Labels are not yet visible because the current remote tileset does not return properties.name.